from rest_framework import serializers
from .models import Favor


class FavorSerializer(serializers.ModelSerializer):
    class Meta:
        model = Favor
        fields = '__all__'


class FavorDetailSerializer(serializers.ModelSerializer):

    class Meta:
        model = Favor
        fields = 'fid', 'user_id', 'video_id', 'is_active', 'time'
        depth = 2
